package logger

import (
	"log"
	"os"
)

var debugLogger, infoLogger, warnLogger, errorLogger *log.Logger

func init() {
	debugLogger = log.New(os.Stdout, "DEBUG ", log.LstdFlags)
	infoLogger = log.New(os.Stdout, "INFO ", log.LstdFlags)
	warnLogger = log.New(os.Stdout, "WARN ", log.LstdFlags)
	errorLogger = log.New(os.Stderr, "ERROR ", log.LstdFlags)
}

func Debug(v ...any) {
	debugLogger.Println(v...)
}

func Info(v ...any) {
	infoLogger.Println(v...)
}

func Warn(v ...any) {
	warnLogger.Println(v...)
}

func Error(v ...any) {
	errorLogger.Println(v...)
}
